package com.motorwaymanage.beans;
/**
 * 维修人员
 */
public class MaintainerInfo {
	private int mid;
	private String mname;
	private int mage;
	private int msex;
	private String mtel;
	private String mpwd;
	
	@Override
	public String toString() {
		return "MaintainerInfo [mid=" + mid + ", mname=" + mname + ", mage=" + mage + ", msex=" + msex + ", mtel="
				+ mtel + ", mpwd=" + mpwd + "]";
	}

	public int getMid() {
		return mid;
	}

	public void setMid(int mid) {
		this.mid = mid;
	}

	public String getMname() {
		return mname;
	}

	public void setMname(String mname) {
		this.mname = mname;
	}

	public int getMage() {
		return mage;
	}

	public void setMage(int mage) {
		this.mage = mage;
	}

	public int getMsex() {
		return msex;
	}

	public void setMsex(int msex) {
		this.msex = msex;
	}

	public String getMtel() {
		return mtel;
	}

	public void setMtel(String mtel) {
		this.mtel = mtel;
	}

	public String getMpwd() {
		return mpwd;
	}

	public void setMpwd(String mpwd) {
		this.mpwd = mpwd;
	}

	public MaintainerInfo(int mid, String mname, int mage, int msex, String mtel, String mpwd) {
		super();
		this.mid = mid;
		this.mname = mname;
		this.mage = mage;
		this.msex = msex;
		this.mtel = mtel;
		this.mpwd = mpwd;
	}

	public MaintainerInfo() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + mage;
		result = prime * result + mid;
		result = prime * result + ((mname == null) ? 0 : mname.hashCode());
		result = prime * result + ((mpwd == null) ? 0 : mpwd.hashCode());
		result = prime * result + msex;
		result = prime * result + ((mtel == null) ? 0 : mtel.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MaintainerInfo other = (MaintainerInfo) obj;
		if (mage != other.mage)
			return false;
		if (mid != other.mid)
			return false;
		if (mname == null) {
			if (other.mname != null)
				return false;
		} else if (!mname.equals(other.mname))
			return false;
		if (mpwd == null) {
			if (other.mpwd != null)
				return false;
		} else if (!mpwd.equals(other.mpwd))
			return false;
		if (msex != other.msex)
			return false;
		if (mtel == null) {
			if (other.mtel != null)
				return false;
		} else if (!mtel.equals(other.mtel))
			return false;
		return true;
	}
}
